package ca.uwindsor.cs.deepweb.utility;

import java.io.InputStream;

import org.apache.lucene.document.Document;

public interface DocumentHandler {

	/**
	 * Creates a Lucene Document from an InputStream. This method can return
	 * <code>null</code>.
	 * 
	 * @param is
	 *            the InputStream to convert to a Document
	 * @return a ready-to-index instance of Document
	 */
	Document processContent(InputStream is) throws DocumentHandlerException;
}
